home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr27
/
ifits00.zip
/
ITEST.BAT
< prev
Wrap
DOS Batch File
|
1994-07-08
|
944b
|
58 lines
@echo off
cls
echo ... ITEST ... IFITS testing in progress
echo.
goto overscript
┌──────
│Dos' "undocumented" test for parameters.
│All examples test for batch command arguments
├──────
│ if "%1" == "" goto error
│or
│ if '%1==' goto error
│or
│ if %2. == . goto errors
│ if %1. == . goto error
│or
│ IF %1! == ! GOTO ERROR
│ IF %2! == ! GOTO ERROR
│or
│ if "%1" == "needcash" goto work
└──────
:overscript
if "%1" == "ifits" goto school
if %1. == . echo FIRST PARM is missing
if "%1" == "" goto needaparm
if %2! == ! goto need2parms
IFITS -T%1 +T%2 /E1
if errorlevel 1 goto showmsg
goto out
:showmsg
echo.
echo E1 caught .. executing command now..
goto out
:need2parms
echo.
echo 2nd Parm need on command line.
echo.
goto out
:needaparm
echo.
echo Parm needed on command line.
echo.
goto out
:school
echo.
echo tsk tsk .. you know better!
echo.
goto out
:out
echo.